exp, expf[exponential]

Contents|Index|Previous|Next

exp, expf
[exponential]

SYNOPSIS

    #include <math.h>
    double exp(double x);
    float expf(float x);

DESCRIPTION

exp and expf calculate the exponential of x, that is, ex (where e is the base of the natural system of logarithms, approximately 2.71828).

You can use the (non-ANSI) function, matherr, to specify error handling for these functions.

RETURNS

On success, exp and expf return the calculated value. If the result underflows, the returned value is 0. If the result overflows, the returned value is HUGE_VAL. In either case, errno is set to ERANGE.

COMPLIANCE

exp is ANSI C. expf is an extension.